package com.zhongxi.guoyuan.entity.coinStore;

import java.io.Serializable;

public class ShopInfos implements Serializable {
    private String id;
    private String name;
    private String status;
    private String address;
    private String phone;
    private String amountofmail;   //满够包邮
    private boolean isSelectded;
    private String storeNum;

    public boolean isSelectded() {
        return isSelectded;
    }

    public void setSelectded(boolean selectded) {
        isSelectded = selectded;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAmountofmail() {
        return amountofmail;
    }

    public void setAmountofmail(String amountofmail) {
        this.amountofmail = amountofmail;
    }

    public String getStoreNum() {
        return storeNum;
    }

    public void setStoreNum(String storeNum) {
        this.storeNum = storeNum;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ShopInfos shopInfos = (ShopInfos) o;

        if (isSelectded != shopInfos.isSelectded) return false;
        if (id != null ? !id.equals(shopInfos.id) : shopInfos.id != null) return false;
        if (name != null ? !name.equals(shopInfos.name) : shopInfos.name != null) return false;
        if (status != null ? !status.equals(shopInfos.status) : shopInfos.status != null)
            return false;
        if (address != null ? !address.equals(shopInfos.address) : shopInfos.address != null)
            return false;
        if (phone != null ? !phone.equals(shopInfos.phone) : shopInfos.phone != null) return false;
        if (amountofmail != null ? !amountofmail.equals(shopInfos.amountofmail) : shopInfos.amountofmail != null)
            return false;
        return storeNum != null ? storeNum.equals(shopInfos.storeNum) : shopInfos.storeNum == null;

    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (address != null ? address.hashCode() : 0);
        result = 31 * result + (phone != null ? phone.hashCode() : 0);
        result = 31 * result + (amountofmail != null ? amountofmail.hashCode() : 0);
        result = 31 * result + (isSelectded ? 1 : 0);
        result = 31 * result + (storeNum != null ? storeNum.hashCode() : 0);
        return result;
    }


    @Override
    public String toString() {
        return "ShopInfos{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", status='" + status + '\'' +
                ", address='" + address + '\'' +
                ", phone='" + phone + '\'' +
                ", amountofmail='" + amountofmail + '\'' +
                ", isSelectded=" + isSelectded +
                ", storeNum='" + storeNum + '\'' +
                '}';
    }
}